package org.totoro.memory.gc;

import org.totoro.structure.list.List;
import org.totoro.structure.list.impl.ArrayList;

/**
 * g1 垃圾回收器
 *
 * @author daocr
 * @date 2020/3/8
 */
public class UseG1GCTest {

    public static void main(String[] args) throws InterruptedException {

        List<byte[]> memory = new ArrayList<>();

        for (int i = 0; i < 100; i++) {
            memory.add(new byte[1 * 1024 * 1024]);
            Thread.sleep(100);
        }
    }

}
